package com.qf.j2105.controller;

import com.qf.j2105.po.Dongtai;
import com.qf.j2105.service.DongTaiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class DongtaiController {
    @Autowired
    private DongTaiService dongTaiService;


    //轮播图
    @RequestMapping("/findDongtai")
    @ResponseBody
    public List<Dongtai> findDongtai(){
        List<Dongtai> all = dongTaiService.findAll();
        return all;
    }
}
